#ifndef SENDPACKTHREAD_H
#define SENDPACKTHREAD_H
#include <QThread>
#include <QSerialPort>

class SendPackThread : public QThread
{
    Q_OBJECT
public:
    SendPackThread(QSerialPort *port);

private:
    void run() override;
    bool buildPack(char cmd,char param,char data[],char *pack); // 组装要发送的请求包

    QSerialPort *m_port = NULL;

};

#endif // SENDPACKTHREAD_H
